#include <bits/stdc++.h>
#define mod 998244353
using namespace std;
namespace lyj{
	int n,q;
	int main(){
		scanf("%d%d",&n,&q);
		for(int i=1;i<=q;i++){
			printf("%d\n",0);
		}
		return 0;
	}
}
int main(){
	freopen("replace.in","r",stdin);
	freopen("replace.out","w",stdout);
	lyj::main();return 0;
}
/*Oh God, can you bless me to get 5pts?(T^T)*/
